package cuongnh.project.japanesediary.vocabulary.ui.perspective;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import cuongnh.project.japanesediary.vocabulary.ui.view.VocabularyExamplesView;
import cuongnh.project.japanesediary.vocabulary.ui.view.VocabularyGrammarsView;
import cuongnh.project.japanesediary.vocabulary.ui.view.VocabularyListView;

public class VocabularyPerspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	public static final String ID = "cuongnh.project.japanesediary.vocabulary.perspective";

	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(true);

		IFolderLayout leftFolder = layout.createFolder("leftFolder",
				IPageLayout.LEFT, 0.2f, IPageLayout.ID_EDITOR_AREA);
		leftFolder.addView(VocabularyListView.ID);

//		IFolderLayout rightBottomFolder = layout.createFolder(
//				"rightBottomFolder", IPageLayout.BOTTOM, 0.5f,
//				IPageLayout.ID_EDITOR_AREA);
//		rightBottomFolder.addView(VocabularyExamplesView.ID);
//		rightBottomFolder.addView(VocabularyGrammarsView.ID);

		layout.getViewLayout(VocabularyListView.ID).setCloseable(false);
	}
}
